<?php
/**
* An event.
*
* Copyright (c) 2009 James Gauld <james@jamesgauld.net>
* This file is part of Scribble.
* @license http://www.scribblecms.co.uk/license.txt
*
* @package Scribble
*/
class ScribbleEvent {

	/**
	* Name of this event.
	*
	* @var string
	*/
	public $name;

	/**
	* Storage for passing data within the event so it persists from one listener
	* to the next
	*
	* @var StdClass
	*/
	public $data;

	/**
	* Constructor.
	*
	* @param string Event name
	* @return ScribbleEvent
	*/
	public function __construct($eventName) {
		$this->name = $eventName;
		$this->data = new StdClass();
	}
}
?>